package com.imooc.bilibili.domain;

import java.util.Date;

/**
 * 弹幕类
 */
public class Danmu {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 用户id，这个弹幕是哪一个用户发送的
     */
    private Long userId;

    /**
     * 视频id，这个弹幕是在哪一个视频下发的
     */
    private Long videoId;

    /**
     * 弹幕内容
     */
    private String content;

    /**
     * 弹幕出现时间
     * 主要是用来告诉前端，应该在这个视频的什么时间点去显示(加载)这条弹幕
     */
    private String danmuTime;

    /**
     * 弹幕的创建时间
     */
    private Date createTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getVideoId() {
        return videoId;
    }

    public void setVideoId(Long videoId) {
        this.videoId = videoId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getDanmuTime() {
        return danmuTime;
    }

    public void setDanmuTime(String danmuTime) {
        this.danmuTime = danmuTime;
    }
}
